package com.pg.auth.model.dto.sysroleuser;

import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;
import com.pg.auth.model.entity.SysRoleUser;
import com.pg.auth.model.dto.sysroleuser.SysRoleUserVO;
import java.util.List;


/***
 * 对象转换
 * @author : huhuaping
 * @Date : 2024-06-06 19:55:33
 */
@Mapper(componentModel = "spring", unmappedSourcePolicy = ReportingPolicy.IGNORE, unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SysRoleUserConvertor {

    SysRoleUserConvertor INSTANCE = Mappers.getMapper(SysRoleUserConvertor.class);

    SysRoleUser dtoToDB(SysRoleUserDTO sysRoleUserDTO);

    SysRoleUserVO dbToVO(SysRoleUser sysRoleUser);

    List<SysRoleUserVO> listDbToVO(List<SysRoleUser> list);
}
